﻿
var chart;
function createChart() {}
    $(document).ready(function () {
        $('#UsedSpaceNum').val(usedSpace+' KB');
        $('#FreeSpaceNum').val(freeSpace + ' KB');
        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'Size_Chart',
                plotBackgroundColor: '#8B8378',
                plotBorderWidth: null,
                plotShadow: false
            },
            title: {
                text: 'Root Space Share'
            },
            tooltip: {
                formatter: function () {
                    return '<b>' + this.point.name + '</b>: ' + Highcharts.numberFormat(this.percentage, 2) + ' %';
                }
            },
            plotOptions: {
                pie: {
                    allowPointSelect: true,
                    cursor: 'pointer',
                    dataLabels: {
                        enabled: true,
                        color: Highcharts.theme.textColor || '#000000',
                        connectorColor: Highcharts.theme.textColor || '#000000',
                        formatter: function () {
                            return '<b>' + this.point.name + '</b>: ' + Highcharts.numberFormat(this.percentage, 2) + ' %';
                        }
                    }
                }
            },
            series: [{
                type: 'pie',
                name: 'Root share',
                data: [
            ['UsedSpace', usedSpace],


               ['FreeSpace', freeSpace]




         ]
            }]
        });
    });
//}